cmake_minimum_required( VERSION 2.8 )


set( EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}/bin )

find_package( OpenGL )
find_package( SFML )

# -----------
# - LIBRARY -
# -----------
set( AER_PATH ${CMAKE_SOURCE_DIR}/../engine )
set( AER_INCLUDE_DIRS ${AER_PATH}/src )
set( AER_LIBRARY_DIRS ${AER_PATH}/bin )
include_directories( ${AER_INCLUDE_DIRS} )

set( AER_LIBRARY  ${AER_LIBRARY_DIRS}/libaerEngine.a )  # ~
set( GLEW_LIBRARY ${AER_LIBRARY_DIRS}/libGLEW.a )       # ~


# --------------
# - THIRDPARTY -    # ~ thirdparties should be elsewhere
# --------------
set( THIRDPARTY_INCLUDE_DIRS ${AER_PATH}/thirdparty )
include_directories( ${THIRDPARTY_INCLUDE_DIRS} )


add_subdirectory( IslandGL4 )
add_subdirectory( VolumetricLines )
add_subdirectory( OrganicTerrain )
add_subdirectory( SuspendedDust )
add_subdirectory( CudaGLCompute )
